<div class="ncsc-index">
  <div class="top-container">
    <div class="basic-info">
      <dl class="ncsc-seller-info">
        <dt class="seller-name">
          <h3>ciming</h3>
          <h5>(用户名：ciming)</h5>
        </dt>
        <dd class="store-logo">
          <p><img alt="{$Think.config.store_info.company_name}" src="http://www.aiyuangong.com/data/upload/shop/store/05205342686075187.jpg"/></p>
          <a href="{:url('seller/store/setting')}"><i class="icon-edit"></i>编辑店铺设置</a> </dd>
        <dd class="seller-permission">管理权限：<strong>管理员</strong></dd>
        <dd class="seller-last-login">最后登录：<strong>{$Think.config.store_info.last_login|date='Y-m-d H:i:s',###}</strong> </dd>
        <dd class="store-name">店铺名称：<a href="{:url('index/store/index?store_id='.config('store_id'))}" >{$store_info.name}</a></dd>
        <dd class="store-grade">店铺等级：<strong>{$Think.config.store_info.grade_id}</strong></dd>
        <dd class="store-validity">有效期：<strong>不限制                    </strong> </dd>
      </dl>
      <div class="detail-rate">
        <h5> <strong>店铺动态评分：</strong> 与行业相比 </h5>
        <ul>
                    <li> 描述相符<span class="credit">5 分</span> <span class=""><i></i><em></em></span> </li>
                    <li> 服务态度<span class="credit">5 分</span> <span class=""><i></i><em></em></span> </li>
                    <li> 发货速度<span class="credit">5 分</span> <span class=""><i></i><em></em></span> </li>
                  </ul>
      </div>
    </div>
  </div>
  <div class="seller-cont">
    <div class="container type-a">
      <div class="hd">
        <h3>店铺及商品提示</h3>
        <h5>您需要关注的店铺信息以及待处理事项</h5>
      </div>
      <div class="content">
        <dl class="focus">
          <dt>店铺商品发布情况：</dt>
          <dd title="已发布/可传商品"><em id="nc_goodscount">0</em>&nbsp;/&nbsp;
            不限          </dd>
          <dt>图片空间使用：</dt>
          <dd><em id="nc_imagecount">0</em>&nbsp;/&nbsp;不限</dd>
        </dl>
        <ul>
          <li><a href="index.php?act=store_goods_online&op=index">出售中 <strong id="nc_online"></strong></a></li>
                    <li><a href="index.php?act=store_goods_offline&op=index">仓库中已审核 <strong id="nc_offline"></strong></a></li>
          <li><a href="index.php?act=store_goods_offline&op=index&type=lock_up">违规下架 <strong id="nc_lockup"></strong></a></li>
          <li><a href="index.php?act=store_consult&op=consult_list&type=to_reply">待回复咨询 <strong id="nc_consult"></strong></a></li>
        </ul>
      </div>
    </div>
    <div class="container type-b">
      <div class="hd">
        <h3>商家帮助</h3>
        <h5></h5>
      </div>
      <div class="content">
          <ul>
              {php}$guide = config("article_cate.seller_guide")['_child'];{/php}
              {foreach $guide as $one}
              <li>
                  <a target="_blank" href="{:url('index/store/guide?cate_id='.$one['id'])}" title="{$one.name}">{$one.name}</a>
              </li>
              {/foreach}
          </ul>
        <dl>
          <dt>平台联系方式</dt>
          {foreach $platform_contact as $one}<dd>{$one.name}：{$one.tag}</dd>{/foreach}
        </dl>
      </div>
    </div>
    <div class="container type-a">
      <div class="hd">
        <h3>交易提示</h3>
        <h5>您需要立即处理的交易订单</h5>
      </div>
      <div class="content">
        <dl class="focus">
          <dt>近期售出：</dt>
          <dd><a href="index.php?act=store_order">交易中的订单 <strong id="nc_progressing"></strong></a></dd>
          <dt>维权提示：</dt>
          <dd><a href="index.php?act=store_complain&select_complain_state=1">收到维权投诉 <strong id="nc_complain"></strong></a></dd>
        </dl>
        <ul>
          <li><a href="index.php?act=store_order&op=index&state_type=state_new">待付款 <strong id="nc_payment"></strong></a></li>
          <li><a href="index.php?act=store_order&op=index&state_type=state_pay">待发货 <strong id="nc_delivery"></strong></a></li>
          <li><a href="index.php?act=store_refund&lock=2"> 售前退款 <strong id="nc_refund_lock"></strong></a></li>
          <li><a href="index.php?act=store_refund&lock=1"> 售后退款 <strong id="nc_refund"></strong></a></li>
          <li><a href="index.php?act=store_return&lock=2"> 售前退货 <strong id="nc_return_lock"></strong></a></li>
          <li><a href="index.php?act=store_return&lock=1"> 售后退货 <strong id="nc_return"></strong></a></li>
          <li><a href="index.php?act=store_bill&op=index&bill_state=1"> 待确认账单 <strong id="nc_bill_confirm"></strong></a></li>
        </ul>
      </div>
    </div>
    <div class="container type-c">
      <div class="hd">
        <h3>销售情况统计</h3>
        <h5>按周期统计商家店铺的订单量和订单金额</h5>
      </div>
      <div class="content">
        <table class="ncsc-default-table">
          <thead>
            <tr>
              <th class="w50">项目</th>
              <th>订单量</th>
              <th class="w100">订单金额</th>
            </tr>
          </thead>
          <tbody>
            <tr class="bd-line">
              <td>昨日销量</td>
              <td>--</td>
              <td>--</td>
            </tr>
            <tr class="bd-line">
              <td>月销量</td>
              <td>--</td>
              <td>--</td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <div class="container type-c h500">
      <div class="hd">
        <h3>单品销售排名</h3>
        <h5>掌握30日内最热销的商品及时补充货源</h5>
      </div>
      <div class="content">
        <table class="ncsc-default-table">
          <thead>
            <tr>
              <th>排名</th>
              <th class="tl" colspan="2">商品信息</th>
              <th>销量</th>
            </tr>
          </thead>
          <tbody>
                      </tbody>
        </table>
      </div>
    </div>
    <div class="container type-d h500">
      <div class="hd">
        <h3>店铺运营推广</h3>
        <h5>合理参加促销活动可以有效提升商品销量</h5>
      </div>
      <div class="content">
                        <dl class="xszk">
          <dt class="p-name"><a href="index.php?act=store_promotion_xianshi&op=xianshi_list">限时折扣</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
                        <i class="icon-minus-sign"></i>未开通
                        </span></dd>
          <dd class="p-info">在规定时间段内对店铺中所选商品进行打折促销活动</dd>
                  </dl>
        <dl class="mjs">
          <dt class="p-name"><a href="index.php?act=store_promotion_mansong&op=mansong_list">满即送</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
                        <i class="icon-minus-sign"></i>未开通
                        </span></dd>
          <dd class="p-info">商家自定义满即送标准与规则，促进购买转化率</dd>
                  </dl>
        <dl class="zhxs">
          <dt class="p-name"><a href="index.php?act=store_promotion_bundling&op=bundling_list">优惠套装</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
                        <i class="icon-minus-sign"></i>未开通
                        </span></dd>
          <dd class="p-info">商品优惠套装、多重搭配更多实惠、商家必备营销方式</dd>
                  </dl>
        <dl class="tjzw">
          <dt class="p-name"><a href="index.php?act=store_promotion_booth&op=booth_list">推荐展位</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
                        <i class="icon-minus-sign"></i>未开通
                        </span></dd>
          <dd class="p-info">选择商品参与平台发布的主题活动，审核后集中展示</dd>
                  </dl>
                        <dl class="djq">
          <dt class="p-name"><a href="index.php?act=store_voucher">代金券</a></span></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
                        <i class="icon-minus-sign"></i>未开通
                        </span></dd>
          <dd class="p-info">自定义代金券使用规则并由平台统一展示供买家领取</dd>
                  </dl>
              </div>
    </div>
  </div>
</div>
<script>
$(function(){
	var timestamp=Math.round(new Date().getTime()/1000/60);
    $.getJSON('/index.php?s=seller/index/statistics&rand='+timestamp, null, function(data){
        if (data == null) return false;
        for(var a in data) {
            if(data[a] != 'undefined' && data[a] != 0) {
                var tmp = '';
                if (a != 'goodscount' && a != 'imagecount') {
                    $('#nc_'+a).parents('a').addClass('num');
                }
                $('#nc_'+a).html(data[a]);
            }
        }
    });
});
</script>